//#version 420

uniform sampler2DRect uWave;

in ivec2 Position;
out vec2 vTexCoords;

void main()
{
    vTexCoords = Position*textureSize(uWave).xy;
    vec2 pos = 2*Position-1;
    gl_Position = vec4(pos, .0, 1.);
}
